package com.itheima.stock.controller;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.pojo.dto.DescribDto;
import com.itheima.stock.service.StockBusinessService;
import com.itheima.stock.vo.resp.R;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 主营业务表(StockBusiness)表控制层
 *
 * @author GuoXinChao.126@gmail.com
 * @since 2023-03-05 02:01:36
 */
@RestController
@RequestMapping
public class StockBusinessController {
    /**
     * 服务对象
     */
    @Resource
    private StockBusinessService stockBusinessService;

    @GetMapping("/api/quot/stock/describe")
    public R getDescrib(String code){
        R<DescribDto> describ = stockBusinessService.getDescrib(code);
        return describ;
    }
}

